﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PresentationLayer
{
    public partial class DialogImport09CustomerTracking : Form
    {
        public DialogImport09CustomerTracking()
        {
            InitializeComponent();

            this.checkBoxCustomerMakeActive.DataBindings.Add("Enabled", this.checkBoxCustomerTracking, "Checked", true);
            this.checkBoxQuitAfterCheck.DataBindings.Add("Enabled", this.checkBoxCustomerTracking, "Checked", true);

            this.checkBoxCustomerTracking.DataBindings.Add("Checked", this, "IsCustomerTracking", true);
            this.checkBoxCustomerMakeActive.DataBindings.Add("Checked", this, "IsCustomerMakeActive", true);
            this.checkBoxQuitAfterCheck.DataBindings.Add("Checked", this, "IsQuitAfterCheck", true);
        }

        public bool IsCustomerTracking { get; set; }
        public bool IsCustomerMakeActive { get; set; }
        public bool IsQuitAfterCheck { get; set; }

        private void toolStripButtonEscapeAndNext_Click(object sender, EventArgs e)
        {
            this.DialogResult = sender.Equals(this.toolStripButtonNext)? DialogResult.OK : DialogResult.Cancel ;
        }

        
    }
}
